package com.coffee.admin.api.supplier.service;

import com.coffee.admin.api.supplier.query.SupplierRoleRelationQuery;
import com.coffee.admin.api.supplier.result.SupplierRoleRelationResult;
import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface SupplierRoleRelationService {

	Page<SupplierRoleRelationResult> getPager(SupplierRoleRelationQuery param, PagerInfo pr);
	
	Integer count(SupplierRoleRelationQuery param);
	
	SupplierRoleRelationResult getDetail(Integer id);
	
	List<SupplierRoleRelationResult> getList(SupplierRoleRelationQuery param, PagerInfo pr);
	
	List<SupplierRoleRelationResult> getList(SupplierRoleRelationQuery param);
	
	List<SupplierRoleRelationResult> getList();

	void delete(Integer id);

	void addOrUpdate(SupplierRoleRelationResult result)throws BusinessException;
	
	Map<Integer,SupplierRoleRelationResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,SupplierRoleRelationResult> getItemMap();
	
}